# -*- coding: utf-8 -*-
"""
 @Time    : 2021/1/27 下午6:42
 @Author  : tgy
 
"""

def read(iter):
    for v in iter:
        yield v

if __name__ == '__main__':
    ...
    rd = read([1, 2, 3])
    for i in iter(lambda :next(rd),2):
        print(i)